//
//  MTBigViewController.m
//  ShiShiBang
//
//  Created by 宋宝强 on 16/9/21.
//  Copyright © 2016年 motianjituan. All rights reserved.
//

#import "MTBigViewController.h"

@implementation MTBigViewController

- (void)viewDidLoad {
UIImageView *imageView = [[UIImageView alloc] initWithImage:self.image];

//[self.scrollView addSubview:imageView];
//_imageView = imageView;
//
//// 判断是否大图
//CGFloat h = XMGScreenW / _item.width * _item.height;
//imageView.frame = CGRectMake(0, 0, XMGScreenW, h);
//
//
//    imageView.center = CGPointMake(XMGScreenW * 0.5, XMGScreenH * 0.5);
//
//
//// 设置缩放比例
//if (_item.width > XMGScreenW) {
//    self.scrollView.maximumZoomScale = _item.width / XMGScreenW;
//    self.scrollView.minimumZoomScale = 1;
//    // scrollView缩放
//    self.scrollView.delegate = self;
//}
//
//}
//
//#pragma mark - UIScrollViewDelegate
//// 返回需要缩放的view
//// 每次缩放的时候,都会询问下代理,哪个view需要缩放
//- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
//{
//    return _imageView;
}


@end
